package com.sjmsks.Jpanels.work.shape;

import java.awt.*;
import java.io.Serializable;

public class AbstractShape implements Shape, Cloneable  {


	public int x1, y1, x2, y2;

	private Color color;

	private Stroke stroke;

	@Override
	public void draw(Graphics2D g) {

	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Stroke getStroke() {
		return stroke;
	}

	public void setStroke(Stroke stroke) {
		this.stroke = stroke;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone(); // 使用Object类的clone()方法创建一个副本
	}

}
